package com.bjpowernode.crm.settings.service;

import com.bjpowernode.crm.settings.domain.DictionaryType;
import com.bjpowernode.crm.settings.domain.DictionaryValue;

import java.util.List;

/**
 * ClassName:DicService
 * package:com.bjpowernode.crm.settings.service
 * Description:
 *
 * @date: 2022-05-28 2:25
 * @author：lin
 */
public interface DicService {
    List<DictionaryType> getType();

    boolean getTypeCode(String code);

    void saveType(DictionaryType type);

    DictionaryType toEdit(String code);

    void updateType(DictionaryType dictionaryType);


    void deleteType(String[] codes);

    List<DictionaryValue> selectValue();


    void saveValue(DictionaryValue dictionaryValue);

    DictionaryValue selectValueId(String code);

    void updateValue(DictionaryValue value);

    void deleteValue(String[] ids);


    List<DictionaryValue> searchDicValue(String typeCode);

}
